from django.urls import path
from PM.views.account import register, user_login, user_logout, user_management  # 导入user_management视图
from PM.views.pm import index, select_department, generate_report, load_template, report_list, \
    download_report, all_report_list, edit_config, delete_report  # 导入index视图

urlpatterns = [
    path('index/', index, name='index'),  # 添加index的URL映射
    path('select_department/', select_department, name='select_department'),  # 添加index的URL映射
    path('generate_report/', generate_report, name='generate_report'),  # 添加index的URL映射
    path('load_template/', load_template, name='load_template'),  # 添加index的URL映射
    path('report_list/', report_list, name='report_list'),  # 添加index的URL映射
    path('all_report_list/', all_report_list, name='all_report_list'),  # 添加index的URL映射
    path('download_report/<int:report_id>/', download_report, name='download_report'),
    path('delete_report/<int:report_id>/', delete_report, name='delete_report'),
    path('edit_config/', edit_config, name='edit_config'),
    # 添加用户管理路由
    path('user_management/', user_management, name='user_management'),
]
